import turtle

turtle.screensize(1100,1100)
h = 10
x = int(input())
y = int(input())
b = int(input())
if x > 500 or y < -500:
    print("Размер фигуры превышает максимальный размер")
else:
    turtle.color("blue")
    t = turtle.Turtle()
    t.fillcolor("green")
    t.begin_fill()
    for i in range(4):
        t.fd(500)
        t.right(90)
    t.end_fill()
    turtle.goto(x, -y)
    turtle.begin_fill()
    turtle.forward(h*b)
    turtle.right(90)
    turtle.forward(h*b)
    turtle.left(90)
    turtle.forward(h*b)
    turtle.right(90)
    turtle.forward(h*b)
    turtle.right(90)
    turtle.forward(h*b)
    turtle.left(90)
    turtle.forward(h*b)
    turtle.right(90)
    turtle.forward(h*b)
    turtle.right(90)
    turtle.forward((h*3)*b)
    turtle.end_fill()
    turtle.done()